package com.ruoyi.shop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shop.mapper.ShopMenuMapper;
import com.ruoyi.shop.domain.ShopMenu;
import com.ruoyi.shop.service.IShopMenuService;

/**
 * 商品管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-21
 */
@Service
public class ShopMenuServiceImpl implements IShopMenuService 
{
    @Autowired
    private ShopMenuMapper shopMenuMapper;

    /**
     * 查询商品管理
     * 
     * @param id 商品管理主键
     * @return 商品管理
     */
    @Override
    public ShopMenu selectShopMenuById(Long id)
    {
        return shopMenuMapper.selectShopMenuById(id);
    }

    /**
     * 查询商品管理列表
     * 
     * @param shopMenu 商品管理
     * @return 商品管理
     */
    @Override
    public List<ShopMenu> selectShopMenuList(ShopMenu shopMenu)
    {
        return shopMenuMapper.selectShopMenuList(shopMenu);
    }

    /**
     * 新增商品管理
     * 
     * @param shopMenu 商品管理
     * @return 结果
     */
    @Override
    public int insertShopMenu(ShopMenu shopMenu)
    {
        return shopMenuMapper.insertShopMenu(shopMenu);
    }

    /**
     * 修改商品管理
     * 
     * @param shopMenu 商品管理
     * @return 结果
     */
    @Override
    public int updateShopMenu(ShopMenu shopMenu)
    {
        return shopMenuMapper.updateShopMenu(shopMenu);
    }

    /**
     * 批量删除商品管理
     * 
     * @param ids 需要删除的商品管理主键
     * @return 结果
     */
    @Override
    public int deleteShopMenuByIds(Long[] ids)
    {
        return shopMenuMapper.deleteShopMenuByIds(ids);
    }

    /**
     * 删除商品管理信息
     * 
     * @param id 商品管理主键
     * @return 结果
     */
    @Override
    public int deleteShopMenuById(Long id)
    {
        return shopMenuMapper.deleteShopMenuById(id);
    }
}
